package extras.salvation.api.wrappers;

/**
 * @author Salvation
 * @version 1.0
 * @since 28-08-2011
 */
public final class Loot {
	private String name;
	private int id, price;
	private boolean priority, junk;
	
	public Loot(String name, int id, int price, boolean priority, boolean junk) {
		this.name = name;
		this.id = id;
		this.price = price;
		this.priority = priority;
		this.junk = junk;
	}
	
	/**
	 * @author Salvation
	 * @return The name of this entry.
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * @author Salvation
	 * @return The id of this entry.
	 */
	public int getId() {
		return id;
	}
	
	/**
	 * @author Salvation
	 * @return The price of this entry, 0 if not loaded.
	 * @see com.rsbuddy.script.methods.GrandExchange
	 */
	public int getPrice() {
		return price;
	}
	
	/**
	 * @author Salvation
	 * @return <tt>true</tt> if this entry has priority, otherwise <tt>false</tt>.
	 */
	public boolean isPriority() {
		return priority;
	}
	
	/**
	 * @author Salvation
	 * @return <tt>true</tt> is this entry is listed as junk, otherwise <tt>false</tt>.
	 */
	public boolean isJunk() {
		return junk;
	}
}